package com.xuanyang.dormrepair.model.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @AUTHOR soft
 * @DATE 2019/5/23 0:57
 * @DESCRIBE
 */
@Getter
@AllArgsConstructor
public enum NoticeType {

    NOWARER("停水", 1),
    NOPOWER("断电", 2),
    NONET("断网", 3),
    WORK("施工", 4),
    OTHER("其他", 5);

    @JsonValue
    private String name;

    @EnumValue
    private Integer code;

}
